package com.jumi.microservice.dto.reponse;

import com.jumi.microservice.enums.CheckStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

@ApiModel("角色认证返回列表")
public class IdentityAuthenticationReponse extends BaseUserReponse {

    @ApiModelProperty("记录id")
    private Integer id;
    @ApiModelProperty("申请人id")
    private Integer uid;
    @ApiModelProperty("社群截图")
    private String image;
    @ApiModelProperty("审核状态")
    private CheckStatus status;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("管理员id")
    private Long adminId;
    @ApiModelProperty("管理员名称")
    private String adminName;


    private LocalDateTime updateTime;


    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public CheckStatus getStatus() {
        return status;
    }

    public void setStatus(CheckStatus status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        if (this.status.getValue() == 0)
            this.remark = "";
        else
            this.remark = remark;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        if (this.status.getValue() == 0)
            this.updateTime = null;
        else
            this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        if (this.status.getValue() == 0)
            this.adminId = 0L;
        else
            this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        if (this.status.getValue() == 0)
            this.adminName = "";
        else
            this.adminName = adminName;
    }
}
